package com.fishing.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.fishing.entity.Admin;
import com.fishing.entity.Auth;
import com.fishing.entity.AuthMap;
import com.fishing.entity.Role;
import com.fishing.entity.ZTreeModel;



public interface RoleService {
    int deleteByPrimaryKey(Integer id)throws Exception;

    int insert(Role record, String [] adminIds)throws Exception;

    Role selectByPrimaryKey(Integer id)throws Exception;

    List<Role> selectAll(Map<String,Object> map)throws Exception;

    int updateByPrimaryKey(Role record, String [] adminIds)throws Exception;
    
    List<Admin> selectRoleAdmins(Integer roleId)throws Exception;
    
    int insertRoleAdmins(Integer roleId, String [] adminIds)throws Exception;
    
    List<String> queryAuthPids(String pid)throws Exception;
    
    int insertRoleAuths(String ids, Integer roleId) throws Exception;
    
    List<ZTreeModel> queryAuthsByPid(String pid) throws Exception;
    
    Auth getAuthById(String id)throws Exception;
    
    List<String> queryAuthsByRoleId(Integer roleId) throws Exception;
    
    List<AuthMap> queryAuthMaps(String authId, Integer adminId)throws Exception;
    
    String queryAuthsByAdminId(Integer adminId) throws Exception;
}